﻿using System;
using Sample.Interfaces;

namespace Sample.Modules.ItemDetail.ViewModels
{
    public class ItemDetailViewModel
    {
        public ItemDetailViewModel(IBook item)
        {
            if (item == null)
            {
                throw new ArgumentNullException("item");
            }
            Owner = item.Author;
            Id = item.Id.ToString();
        }

        public string Owner { get; private set; }
        public string Id { get; private set; }
    }
}
